Page({
    data: {
        latitude: 40.13763,
        longitude: 116.20501,
        markes: []
    },
    handleClick() {
        wx.chooseLocation({
            success: res => {
                console.log(res)
                let { latitude, longitude } = res
                let info = {
                    id:1,
                    latitude,
                    longitude,
                    iconPath: "https://th.bing.com/th/id/OIP.ecX8FgG-TksqKHCjbUFfWQHaHa?pid=ImgDet&rs=1",
                    content: res.name,
                    fontSize: 24,
                    width: 30,
                    height: 30
                }
                this.setData({
                    latitude,
                    longitude,
                    markes: [info]
                })
            }
        })
    }

})